<?php

namespace app\dao\product\product;

use app\dao\BaseDao;
use app\model\product\product\StoreProductTemplateRelation;

class StoreProductTemplateRelationDao extends BaseDao
{

    protected function setModel(): string
    {
        return StoreProductTemplateRelation::class;
    }


    public function getProductParamsRelation($product_id)
    {
        return $this->getModel()->where([
            'product_id' => $product_id
        ])->field(['merchant_param_key', 'merchant_param_value'])->select()->toArray();
    }
}